summaryrefslogtreecommitdiff
path: root/website/src/pages/blog/[...slug].astro
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-04-25 11:02:50 +0100
committerJoe Carstairs <me@joeac.net>2026-04-25 11:02:50 +0100
commit8744ba58c9bf46886a79cb3ca7df8480a90542d2 (patch)
treec0e8e879cd62469482ea2bf20cacbfa51200d8c3 /website/src/pages/blog/[...slug].astro
parent728bc67ddfa82fc6c7495782b5bfd50ed402ae4b (diff)
moves website/public/images to common/images
Diffstat (limited to 'website/src/pages/blog/[...slug].astro')
-rw-r--r--website/src/pages/blog/[...slug].astro1
1 files changed, 0 insertions, 1 deletions
diff --git a/website/src/pages/blog/[...slug].astro b/website/src/pages/blog/[...slug].astro
index 86cdcfe..c362dfc 100644
--- a/website/src/pages/blog/[...slug].astro
+++ b/website/src/pages/blog/[...slug].astro
@@ -31,7 +31,6 @@ const GemtextHTMLRenderer: Gemtext.Renderer<string> = {
return `<p>${htmlEscape(content)}</p>`
},
link: function (url: string, alt: string): string {
- url = url.replaceAll(/^\/images\//g, '/images/capsule/');
const imgExtensions: (string | undefined)[] = ['webp', 'png', 'svg', 'gif', 'jpg', 'jpeg', 'apng']
if (imgExtensions.includes(url.split('.').at(-1)?.toLowerCase())) {
return `<img src="${url}" alt="${alt}" />`;